<form method="post"
        action="${rc.getContextPath()}/manage/workflowBusiness/saveBusinessType"
        class="pageForm required-validate"
        onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageContent">
        <div class="pageFormContent" layouth="56">
            <input type="hidden" name="navTabId" value="">
            <input type="hidden" name="siteCode" value="${siteCode}">
            <fieldset class="dataset">
                <dl>
                    <dt><@label key="businessType.C,colon">业务类型：</@label></dt>
                    <dd>
                        <input name="businessType" 
                            size="32" type="text" maxlength="40" class="required alphanumeric toUp" 
                            remote="${rc.getContextPath()}/manage/workflowBusiness/validateBusinessType"
                            warn="<@label key="businessTypeExist.M">业务类型已存在</@label>"
                        /> 
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="businessTypeText.C,colon">业务类型描述：</@label></dt>
                    <dd>
                        <input name="businessTypeText" 
                            size="32" type="text" maxlength="60" 
                        /> 
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="dbTable.C,colon">数据库表名：</@label></dt>
                    <dd>
                        <input name="dbTable" 
                            size="100" type="text" maxlength="30" class="toUp"  readonly="true"
                        /> 
                    </dd>
                </dl>
                <dl>
                    <dt></dt>
                    <dd>
                        <input name="tableCreateFlag"  type="checkbox"  disabled="disabled" value="1" ><@label key="tableCreateFlag.C">表结构已生成</@label></input>
                    </dd>
                </dl>
                <dl class="notnormal">
                    <dt><@label key="sequenceCode.C,colon">序列编号：</@label></dt>
                    <dd>
                        <input name="sequenceCode" id="sequenceLookup.sequenceCode"
                            size="32" type="text" maxlength="30" class="required alphanumeric toUp look textInput"  readonly="true"
                        /> 
                        <a  class="btnLook" href="${rc.getContextPath()}/manage/sequence/lookUpSequencesPageInfo" width="700" height="500" rel="sequenceLookup_dialog"  lookupGroup="sequenceLookup"  title='<@label key="sequenceLookup.C">序列编号选择</@label>'></a>
                    </dd>
                </dl>
                <dl  class="notnormal">
                    <dt><@label key="numberRuleCode.C,colon">业务编号规则：</@label></dt>
                    <dd>
                        <input name="numberRuleCode" id="numberRuleLookup.ruleCode" 
                            size="32" type="text" maxlength="30" class="required alphanumeric toUp look textInput"  readonly="true"
                        /> 
                        <a  class="btnLook" href="${rc.getContextPath()}/manage/numberRule/numberRuleLookUp" width="800" height="500" rel="numberRuleLookup_dialog"  lookupGroup="numberRuleLookup" title='<@label key="numberRuleLookup.C">业务编号选择</@label>'></a>
                    </dd>
                </dl>
            </fieldset>
        </div>
        
        </div>
        <div class="formBar">
            <ul>
                <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="save.B">保存</@label></button>
                            </div>
                        </div>
                        <div class="buttonActiveGrey" style="margin-left: 10px;">
                            <div class="buttonContent">
                                <button  type="button" class="close"><@label key="cancel.B">取消</@label></button>
                            </div>
                        </div>
                       </li>
            </ul>
        </div>
    </form>
    
    <script type="text/javascript">
	(function($){
	    var page = DWZ.context();
	    $("input[name='businessType']",page).attr("maxlength",23- $("input[name='siteCode']",page).val().length);
	    
	    $("input[name='businessType']",page).on("keyup",function(){
            var businessType = $(this).val();
            var siteCode = $("input[name='siteCode']",page).val();
            $("input[name='dbTable']",page).val("SZ_"+siteCode+"_"+businessType);
        }) 
     
	})(jQuery);
	</script>